package com.fis.hthk.dblinkapi.util;

import com.agileitp.forte.framework.Array;
import com.agileitp.forte.framework.TextData;
import com.ssaglobal.scm.wms.service.baseobjects.EXEDataObject;

public class ExecProcedure {

	
	public static EXEDataObject execProcedureAction(String provider, String jndi,String uid,String procedureName,Array parms) throws Exception{
		WmsWebuiActionsProperties actionProperties = new WmsWebuiActionsProperties();
		actionProperties.setDbJndi(jndi);
		actionProperties.setUserid(uid);
		actionProperties.setProcedureName(procedureName);

		actionProperties.setProcedureParameters(parms);
		try{
			return WmsWebuiActionsImpl.doAction(provider, actionProperties);
		}catch(Exception e){
			throw new Exception(e.getMessage());
		}
	}
}
